<template>
  <div>
    <router-view v-slot="{ Component }">
      <transition mode="out-in" name="el-fade-in-linear">
        <keep-alive :include="keepaliveRoute">
          <component :is="Component" />
        </keep-alive>
      </transition>
    </router-view>
  </div>
</template>

<script>
import {useRouteStore} from "@/pinia/index.js";
const routeStore = useRouteStore();

export default {
  name: 'SuperAdmin',
  data() {
    return {
      keepaliveRoute: []
    }
  },
  created() {
    this.keepaliveRoute = routeStore.keepAliveRouters
  }
}
</script>
